<script>
function togelmenu(){
  $('#fdiv').toggle('slow');
}
</script>
            <!-- Header. Status part -->
            <div id="header-status">
                <div class="container_12">
                    <div class="grid_8">
					 &nbsp;
                    </div>
                    <div class="grid_4">                    
					<?php 
                    $isLoggedin = false; 
                    if(AdminMaster::is_admin_loggedin()){     $isLoggedin = true; ?>
                   <span id="admin"> Welcome : <?php echo $_SESSION['sess_admin_name'];?></span>
                    
                    &nbsp;<a href="<?php echo _SITE_ADMIN_URL_;?>logout.php" id="logout">&nbsp;&nbsp;&nbsp;&nbsp;Logout</a>
                    <a href="<?php echo _SITE_ADMIN_URL_;?>change-password/change_pwd.php" id="logout">Change Password</a>
					<?php }else{?>
					<span id="admin"> Welcome : <a href="">Guest</a></span>
                    <a href="<?php echo _SITE_ADMIN_URL_;?>index.php" id="logout">Login</a>
					
					<?php }?>
                    </div>
                </div>
                <!--<div style="clear:both;"></div>-->
            </div> <!-- End #header-status -->
            
            
            <!-- Header. Main part -->
            <div id="header-main">
                <div class="container_12">
                    <div class="grid_12">
                        <div id="logo">
                            <ul id="nav" style="display:block; float:none;">
                            <li style="float:right;" id="menu_r"><a href="javascript:void(0);" onclick="togelmenu();">Menu</a><div id="fdiv" style="position:absolute; background:#fff; width:200px; border:1px solid #999; padding:10px; margin:34px 0 0 -163px; display:none; font-size:12px; color:#0063BE">
                            
                            <?php 
                                $rowModule = AdminMaster::moduleList();
                                foreach($rowModule as $mod ){
echo '<a href="'._SITE_ADMIN_URL_.$mod['module'].'/'.$mod['list_page'].'" style="background:url(\''._SITE_ADMIN_URL_.'images/arrow.gif\') no-repeat 5px; padding-left:28px; color:#0063BE;">'.$mod['module_name'].'</a>';            
                                }   
                            ?>
                              
                              </div></li>
                            <?php   
                            if($isLoggedin){  
								echo '<li id="'.$id.'"><a href="'._SITE_ADMIN_URL_.'index.php">Home</a></li>';
                                // get all allowed modules for the logged in user   //
                                $resMod = AdminMaster::getAllowedModule();
                                $currMod = AdminMaster::getCurrentModuleName();
                                
                                if( in_array('admin-users', $resMod) ){       
                                    $id='';
                                    if( $currMod == 'admin-users'){
                                        $id='current';                                        
                                   		echo '<li id="'.$id.'"><a href="'._SITE_ADMIN_URL_.'admin-users/user_mng.php">Admin User</a></li>';
								    }
                                   
                                }
                                
                                
                                if( in_array('access-module', $resMod) ){       
                                    $id='';
                                    if( $currMod == 'access-module'){
                                        $id='current';                                        
                                   		echo '<li id="'.$id.'"><a href="'._SITE_ADMIN_URL_.'access-module/access_group_mng.php">Admin Role</a></li>';
								    }
                                    
                                }
                                
                                if( in_array('users', $resMod) ){       
                                    $id='';
                                    if( $currMod == 'users'){
                                        $id='current';
                                        $submenue = '';
                                   		echo '<li id="'.$id.'"><a href="'._SITE_ADMIN_URL_.'users/users_mng.php">Users Management</a></li>';
								    }
                                    
                                }
                                
                                if( in_array('honeymoon-package', $resMod) ){       
                                    $id='';
                                    if( $currMod == 'honeymoon-package'){
                                        $id='current';
                                    	echo '<li id="'.$id.'"><a href="'._SITE_ADMIN_URL_.'honeymoon-package/package_mng.php">Honeymoon Package</a></li>';
									}
                                   
                                }
                                
                                if( in_array('vendors', $resMod) ){       
                                    $id='';
                                    if( $currMod == 'vendors'){
                                        $id='current';                                        
                                    	echo '<li id="'.$id.'"><a href="'._SITE_ADMIN_URL_.'vendors/vendors_mng.php">Vendors Management</a></li>';
									}
                                    
                                }
                                
                                if( in_array('wedding', $resMod) ){       
                                    $id='';
                                    if( $currMod == 'wedding'){
                                        $id='current';                                        
                                   		echo '<li id="'.$id.'"><a href="'._SITE_ADMIN_URL_.'wedding/wedding_mng.php">Wedding Package</a></li>';
								    }
                                    
                                }
								
								if( in_array('category', $resMod) ){       
                                    $id='';
                                    if( $currMod == 'category'){
                                        $id='current';                                        
                                   	 	echo '<li id="'.$id.'"><a href="'._SITE_ADMIN_URL_.'category/category_mng.php">Category Management</a></li>';
									}
                                    
                                }
								
								if( in_array('product', $resMod) ){       
                                    $id='';
                                    if( $currMod == 'product'){
                                        $id='current';                                        
                                   		echo '<li id="'.$id.'"><a href="'._SITE_ADMIN_URL_.'product/product_mng.php">Product Management</a></li>';
								    }
                                    
                                }
								
								if( in_array('venue', $resMod) ){       
                                    $id='';
                                    if( $currMod == 'venue'){
                                        $id='current';                                        
                                   		echo '<li id="'.$id.'"><a href="'._SITE_ADMIN_URL_.'venue/venue_mng.php">Venue Management</a></li>';
									}
                                    
                                }
								
								if( in_array('master', $resMod) ){       
                                    $id='';
                                    if( $currMod == 'master'){
                                        $id='current';                                        
                                   		echo '<li id="'.$id.'"><a href="'._SITE_ADMIN_URL_.'master/master_mng.php">Master Management</a></li>';
								    }
                                    
                                }
								
								if( in_array('content', $resMod) ){       
                                    $id='';
                                    if( $currMod == 'content' || $currMod == 'news'){
                                        $id='current';                                        
                                   		echo '<li id="'.$id.'"><a href="'._SITE_ADMIN_URL_.'content/content_mng.php">Content Management</a></li>';
									}
                                    
                                }
                                
                                if( in_array('gifts', $resMod) ){       
                                    $id='';
                                    if( $currMod == 'gifts'){
                                        $id='current'; 
										 echo '<li id="'.$id.'"><a href="'._SITE_ADMIN_URL_.'gifts/gift_mng.php">Gift Management</a></li>';
                                    }
                                   
                                }
                                
                                if( in_array('deals', $resMod) ){       
                                    $id='';
                                    if( $currMod == 'deals'){
                                        $id='current'; 
										echo '<li id="'.$id.'"><a href="'._SITE_ADMIN_URL_.'deals/deal_mng.php">Deals Management</a></li>';                                      
                                    }
                                    
                                }
                                
                            }
                            ?>            

                            </ul>
                        </div><!-- End. #Logo -->
                    </div><!-- End. .grid_12-->
                    <div style="clear: both;"></div>
                </div><!-- End. .container_12 -->
            </div> <!-- End #header-main -->
            <div style="clear: both;"></div>
            <!-- Sub navigation -->
            <div id="subnav">
			<?php if($isLoggedin){ ?>
                <div class="container_12">
                    <div class="grid_12">
                        
                        <?php if( $currMod == 'admin-users'){   ?>
                        <ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>admin-users/user_add.php">Add Admin User</a></li>
                        </ul>
                        <ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>admin-users/user_mng.php">Manage Admin User</a></li>
                        </ul>
                        <?php } ?>
                        
                        <?php if( $currMod == 'access-module'){   ?>
                        <ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>access-module/access_group_add.php">Add Access Role</a></li>
                        </ul>
                        <ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>access-module/access_group_mng.php">Manage Access Role</a></li>
                        </ul>
                        <?php } ?>
                        
                        <?php if( $currMod == 'honeymoon-package'){   ?>
                        <ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>honeymoon-package/package_add.php">Add Package</a></li>
                        </ul>
                        
                        <ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>honeymoon-package/package_mng.php">List Package</a></li>
                        </ul>
                        
                        <!-- <ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>honeymoon-package/package_destination_add.php">Add Destination</a></li>
                        </ul>
                        
                        <ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>honeymoon-package/package_destination_mng.php">List Destination</a></li>
                        </ul> -->
                        
                        <ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>honeymoon-package/honeymoon_theme_add.php">Add Theme</a></li>
                        </ul>
                        
                        <ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>honeymoon-package/honeymoon_theme_mng.php">List Theme</a></li>
                        </ul>
                        
                        <ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>honeymoon-package/honeymoon_type_add.php">Add Type</a></li>
                        </ul>
                        
                        <ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>honeymoon-package/honeymoon_type_mng.php">List Type</a></li>
                        </ul>
                        
                        <?php   }   ?>
                        
                        <?php if( $currMod=='wedding' ){    ?>
                        <ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>wedding/wedding_add.php">Add Wedding Package</a></li>
                        </ul>
                        
                        <ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>wedding/wedding_theme_add.php">Add Theme</a></li>
                        </ul>
                        
                        <ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>wedding/wedding_theme_mng.php">List Theme</a></li>
                        </ul>
                        
                        <ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>wedding/wedding_slab_add.php">Add Slab</a></li>
                        </ul>
                        
                        <ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>wedding/wedding_slab_mng.php">List Slab</a></li>
                        </ul>
                        <?php } ?>

						<?php if( $currMod == 'vendors'){ ?>
                        <ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>vendors/vendors_add.php">Add Vendor</a></li>
                        </ul>
						<ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>vendors/vendor_product_mng.php">Vendor Product Mangement</a></li>
                        </ul>
						<ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>vendors/vendor_product_add.php">Add Vendor Product</a></li>
                        </ul>
						<ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>vendors/vendor_service_mng.php">Vendor Service Mangement</a></li>
                        </ul>
						<ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>vendors/vendor_service_add.php">Add Vendor Service</a></li>
                        </ul>
                        <?php   }   ?>
						
						<?php if( $currMod == 'content'){   ?>
                        <ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>content/news_add.php">Add News</a></li>
                        </ul>
						<ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>content/news_mng.php">News Management</a></li>
                        </ul>
                        <ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>content/page_add.php">Add Page</a></li>
                        </ul>
                        <ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>content/page_mng.php">Page Management</a></li>
                        </ul>
                        <?php } ?>
						
						<?php if( $currMod == 'category'){   ?>
                        <ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>category/category_add.php">Add Category</a></li>
                        </ul>
						<?php } ?>
    
						<?php if( $currMod == 'product'){   ?>
                        <ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>product/product_add.php">Add Product</a></li>
                        </ul>
						<?php } ?>
						
						<?php if( $currMod == 'master'){   ?>
							<ul>
								<li><a href="<?php echo _SITE_ADMIN_URL_?>master/country_mng.php">Country Management</a></li>
							</ul>
							<ul>
								<li><a href="<?php echo _SITE_ADMIN_URL_?>master/country_add.php">Add Country</a></li>
							</ul>
							<ul>
								<li><a href="<?php echo _SITE_ADMIN_URL_?>master/state_mng.php">State Management</a></li>
							</ul>
							<ul>
								<li><a href="<?php echo _SITE_ADMIN_URL_?>master/state_add.php">Add State</a></li>
							</ul>
							<ul>
								<li><a href="<?php echo _SITE_ADMIN_URL_?>master/city_mng.php">City Management</a></li>
							</ul>
							<ul>
								<li><a href="<?php echo _SITE_ADMIN_URL_?>master/city_add.php">Add City</a></li>
							</ul>
							<ul>
								<li><a href="<?php echo _SITE_ADMIN_URL_?>master/zone_mng.php">Zone Management</a></li>
							</ul>
							<ul>
								<li><a href="<?php echo _SITE_ADMIN_URL_?>master/zone_add.php">Add Zone</a></li>
							</ul>
							<ul>
								<li><a href="<?php echo _SITE_ADMIN_URL_?>master/brand_mng.php">Brand Management</a></li>
							</ul>
							<ul>
								<li><a href="<?php echo _SITE_ADMIN_URL_?>master/brand_add.php">Add Brand</a></li>
							</ul>
							<!-- <ul>
								<li><a href="<?php echo _SITE_ADMIN_URL_?>master/service_attribute_mng.php">Services Attributes Management</a></li>
							</ul>
							<ul>
								<li><a href="<?php echo _SITE_ADMIN_URL_?>master/service_attribute_add.php">Add Service Attribute</a></li>
							</ul> -->
							<ul>
								<li><a href="<?php echo _SITE_ADMIN_URL_?>master/service_mng.php">Service Management</a></li>
							</ul>
							<ul>
								<li><a href="<?php echo _SITE_ADMIN_URL_?>master/service_add.php">Add Service</a></li>
							</ul>
							<ul>
								<li><a href="<?php echo _SITE_ADMIN_URL_?>master/menu_category_mng.php">Menu Category Management</a></li>
							</ul>
							<ul>
								<li><a href="<?php echo _SITE_ADMIN_URL_?>master/menu_category_add.php">Add Menu Category</a></li>
							</ul>
							<ul>
								<li><a href="<?php echo _SITE_ADMIN_URL_?>master/venue_item_mng.php">Venue Item Management</a></li>
							</ul>
							<ul>
								<li><a href="<?php echo _SITE_ADMIN_URL_?>master/venue_item_add.php">Add Venue Item</a></li>
							</ul>
                            
                            <ul>
                                <li><a href="<?php echo _SITE_ADMIN_URL_?>master/inclusion_mng.php">Inclusion Management</a></li>
                            </ul>
                            <ul>
                                <li><a href="<?php echo _SITE_ADMIN_URL_?>master/inclusion_add.php">Add Inclusion Item</a></li>
                            </ul>
                            
                            <ul>
                                <li><a href="<?php echo _SITE_ADMIN_URL_?>master/attribute_mng.php">Attribute Management</a></li>
                            </ul>
                            <ul>
                                <li><a href="<?php echo _SITE_ADMIN_URL_?>master/attribute_add.php">Add Attribute</a></li>
                            </ul>
                                                        
                            <ul>
                                <li><a href="<?php echo _SITE_ADMIN_URL_?>master/unit_mng.php">Unit Management</a></li>
                            </ul>
                            <ul>
                                <li><a href="<?php echo _SITE_ADMIN_URL_?>master/unit_add.php">Add Unit</a></li>
                            </ul>
						<?php } ?>
						
						<?php if( $currMod == 'venue'){   ?>
							<ul>
								<li><a href="<?php echo _SITE_ADMIN_URL_; ?>venue/venue_add.php">Add Venue</a></li>
							</ul>
                            <ul>
                                <li><a href="<?php echo _SITE_ADMIN_URL_; ?>venue/venuetariff_mng.php">Venue Tariff Management</a></li>
                            </ul>
                            <ul>
                                <li><a href="<?php echo _SITE_ADMIN_URL_?>venue/venuetariff_add.php">Add Venue Tariff</a></li>
                            </ul>
							<ul>
								<li><a href="<?php echo _SITE_ADMIN_URL_; ?>venue/venuetype_mng.php">Venue Type Management</a></li>
							</ul>
							<ul>
								<li><a href="<?php echo _SITE_ADMIN_URL_?>venue/venuetype_add.php">Add Venue Type</a></li>
							</ul>
							<ul>
								<li><a href="<?php echo _SITE_ADMIN_URL_; ?>venue/venueinventory_mng.php">Venue Inventory Management</a></li>
							</ul>
							<ul>
								<li><a href="<?php echo _SITE_ADMIN_URL_?>venue/venueinventory_add.php">Add Venue Inventory</a></li>
							</ul>
							<ul>
								<li><a href="<?php echo _SITE_ADMIN_URL_; ?>venue/venuerating_mng.php">Venue Rating Management</a></li>
							</ul>
							<ul>
								<li><a href="<?php echo _SITE_ADMIN_URL_?>venue/venuerating_add.php">Add Venue Rating</a></li>
							</ul>
                            <!--<ul>
                                <li><a href="<?php echo _SITE_ADMIN_URL_; ?>venue/venueinventory_mng.php">Venue Inventory Management</a></li>
                            </ul>
                            <ul>
                                <li><a href="<?php echo _SITE_ADMIN_URL_?>venue/venueinventory_add.php">Add Venue Inventory</a></li>
                            </ul>-->
                            
						<?php } ?>
                        
                        <?php if( $currMod == 'gifts'){   ?>
                        <ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>gifts/gift_add.php">Add Gift</a></li>
                        </ul>
                        <?php } ?>

                        <?php if( $currMod == 'deals'){   ?>
                        <ul>
                            <li><a href="<?php echo _SITE_ADMIN_URL_;?>deals/deal_add.php">Add Deal</a></li>
                        </ul>
                        <?php } ?>
    
                    </div><!-- End. .grid_12-->
                </div><?php }?><!-- End. .container_12 -->
                <div style="clear: both;"></div>
            </div> <!-- End #subnav -->            
            
        </div>
